﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="BadmintonApp.Web.Register" MasterPageFile="~/Main.Master" %>
<asp:Content ID="contentheader" runat="server" ContentPlaceHolderID="head">

    <script type="text/javascript">
        function updateseccode() {
            var img = document.getElementById("seccodeimg");
            img.src = "/vimg.htm?name=seccode&_dc=" + Math.random();
        }

        function checkPassword2() {
            var p1 = document.getElementById("password1").value;
            var p2 = document.getElementById("password2").value;
            if (p1 != p2) {
                document.getElementById("checkpassword2").innerHTML = " 两次输入的密码不一致！ ";
            } else {
                document.getElementById("checkpassword2").innerHTML = " ";
            }
        }

        function checkreg() {
            if (!document.getElementById("accode").checked) {
                $.ajaxPopup.open({
                    content: '请选中同意服务条款选项'
                });
                return false;
            }
        }
    </script>
    <style type="text/css">
.reginput {
  border: 1px solid #ACACAC;
  font-size: 14px;
  height: 25px;
  line-height: 25px;
  margin-right: 5px;
  padding: 0 3px;
  width: 174px;
}
.formtable span{
color:#666666;
}
</style>
</asp:Content>
<asp:Content ID="content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="c_form">
        <table cellpadding="0" cellspacing="0" class="formtable">
            <caption>
                <h2>注册新帐号</h2>
                <p>注册完成后，该帐号将作为您在本站的通行帐号，您可以享受本站提供的各种服务。</p>
            </caption>
            <tr>
                <th width="100">Email帐号</th>
                <td>
                    <asp:TextBox ID="txtAccount" CssClass="reginput" runat="server"></asp:TextBox> *
                    <span id="checkusername">&nbsp;请输入一个有效的邮箱地址作为您的登录帐号，一旦注册成功不可修改。</span>
                </td>
            </tr>
            <tr>
                <th width="100">用户名称</th>
                <td>
                    <asp:TextBox ID="txtUserName" CssClass="reginput" runat="server"></asp:TextBox> *
                    <span>&nbsp;输入您的姓名或昵称，可由数字，字母或中文汉字组成。</span>
                </td>
            </tr>
            <tr>
                <th width="100">登录密码</th>
                <td>
                    <asp:TextBox ID="txtPassword" CssClass="reginput" runat="server"></asp:TextBox> *
                    <span id="checkpasword">&nbsp;输入您的姓名或昵称，可由数字，字母或中文汉字组成。</span><br />
                </td>
            </tr>
            <tr>
                <th width="100">再次输入密码</th>
                <td>
                    <asp:TextBox ID="txtConfirmPassword" CssClass="reginput" runat="server"></asp:TextBox> *
                    <span id="Span1">&nbsp;请再输入一遍您的密码。</span><br />
                </td>
            </tr>
            <tr>
                <th>验证码</th>
                <td>
                    <p><img id="seccodeimg" src="/vimg.htm?name=seccode"/> 看不清<a href="javascript:updateseccode()">更换一张</a></p>
                    <asp:TextBox ID="txtSeccode" runat="server" CssClass="reginput" TabIndex="1"></asp:TextBox>&nbsp;<span id="checkseccode">&nbsp;</span>
                </td>
            </tr>
            <tr>
                <th>服务条款</th>
                <td>
                    <asp:CheckBox runat="server" ID="chkAccode" />我已阅读，并同意以上<a title="服务条款" class="popup" href="/service.html">服务条款</a>
                </td>
                
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td>
                    <asp:Button ID="btnRegister" runat="server" Text="注册新用户" TabIndex="6" CssClass="submit" />
                </td>
            </tr>
        </table>
        
    </div>
    
</asp:Content>

